package com.yuxi.Dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.yuxi.Entity.Position;
import com.yuxi.Entity.UserPosition;
/**
 *	职务接口
 * @author hunter
 * @version 1.0
 * 2016/08/27
 */


@Repository
public interface UserPositionDao {

	public UserPosition getPosition(Integer id);
	
	public UserPosition addUserPosition(UserPosition userPosition);
	
	public void deleteUserPosition(UserPosition userPosition);
	
	public void modifly(UserPosition userPosition);
	/**
	 * 获取用户的职务
	 * @param 
	 * @return List<UserPosition>
	 */
	public List<UserPosition> getPositionByUserId(Integer userId);
	
	/**
	 * 获取用户职务
	 * */
	public Position getPositionByUser(Integer userId);
	
}
